import 'package:flutter/material.dart';

/**
 * 键盘工具类
 */
class KeyBoardUtil{
  static downKeyBoard(BuildContext context,){
    FocusScope.of(context).requestFocus(FocusNode());
  }

  static KeyBoardOnTouchDownWidget(BuildContext context,{required Widget child}){
    return GestureDetector(
      onTap: ()=>FocusScope.of(context).requestFocus(FocusNode()),
      child: child,
    );
  }
}